package com.wrx.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 贴吧收藏记录的bean
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_collect_bar")
@ApiModel(value="CollectBar对象", description="")
public class CollectBar {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "吧收藏id")
    @TableId(value = "collect_id", type = IdType.AUTO)
    private Integer collect_bar_id;

    @ApiModelProperty(value = "用户id")
    private Integer user_id;

    @ApiModelProperty(value = "吧id")
    private Integer bar_id;

    public  CollectBar(){};

    public CollectBar(Integer collect_bar_id, Integer user_id, Integer bar_id) {
        this.collect_bar_id = collect_bar_id;
        this.user_id = user_id;
        this.bar_id = bar_id;
    }

    public Integer getCollect_bar_id() {
        return collect_bar_id;
    }

    public void setCollect_bar_id(Integer collect_bar_id) {
        this.collect_bar_id = collect_bar_id;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Integer getBar_id() {
        return bar_id;
    }

    public void setBar_id(Integer bar_id) {
        this.bar_id = bar_id;
    }
}
